//
//  CerfiticationOkViewModel.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/22.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CerfiticationOkViewModel.h"

@implementation CerfiticationOkViewModel

-(instancetype)initWithViewToViewScrollView:(UIScrollView *)scrollView theSuperView:(UIView *)superView{
    if (self = [super initWithViewToViewScrollView:scrollView theSuperView:superView]) {
        scrollView.y = scrollView.y + kHeightProportion_In_iPhoneTriploid(10);
        scrollView.height = scrollView.height - kHeightProportion_In_iPhoneTriploid(10);
        [superView addSubview:scrollView];
        //
        GLGWImageView * cerImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake((KScreenWidth - kWidthProportion_In_iPhoneTriploid(60))/2, kHeightProportion_In_iPhoneTriploid(20), kWidthProportion_In_iPhoneTriploid(60), kHeightProportion_In_iPhoneTriploid(60)) imageName:@"pp" inSuperView:scrollView];
        cerImageView.backgroundColor = kRandomColor;
        //
        GLGWLabel * writerlabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(cerImageView, 20), KScreenWidth, kHeightProportion_In_iPhoneTriploid(22)) theFont:SYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:scrollView];
        writerlabel.text = @"等待处理";
        writerlabel.textAlignment = NSTextAlignmentCenter;
        //
        GLGWLabel * chuliLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(writerlabel, 10), KScreenWidth, kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:scrollView];
        chuliLabel.textAlignment = NSTextAlignmentCenter;
        chuliLabel.text = @"当已提交认证申请，稍等一下客服马上处理～";
        //
        self.bankHomeBut = [[GLGWButton alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kY_With_View(chuliLabel, 60), KScreenWidth - kWidthProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(44)) hTitle:@"前往自由经理人首页" titleLableFont:SYSTEMFONT(16) titleLableColor:[UIColor whiteColor] theCornerRadius:kHeightProportion_In_iPhoneTriploid(22) backgroundColr:kColor_Rule_Yellow inSuperView:scrollView];
    }
    return self;
}

@end
